package com.schoolcloud.api.client.front;

import com.schoolcloud.common.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "sc-front",path = "/front/permission",contextId = "frontPermissionClient")
public interface FrontPermissionClient {

    @GetMapping("/by/{userId}")
    R<List<String>> getPermissionCodesByUserId(@PathVariable String userId);
}
